home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1995…tember: Reference Library / Dev.CD Sep 95 RL / Dev.CD Sep 95 RL.toast / mac / Technical Documentation / develop / develop Issue 6 code / TCP / NewsWatcher / NW Source / Shared Code / Reusable Source / ftp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-08  |  676 b   |  21 lines  |  [TEXT/MPCC]

  1. #ifndef __FTP__
  2. #define __FTP__
  3.  
  4. #include "net.h"
  5.  
  6. typedef void *FtpStreamRef;
  7.  
  8. #define ftpServerErr 110
  9.  
  10. OSErr FtpOpen (char *host, char *username, char *password, Boolean passive,
  11.     FtpStreamRef *stream);
  12. OSErr FtpClose (FtpStreamRef stream);
  13. OSErr FtpGetFile (FtpStreamRef stream, char *path, Boolean textFile, Handle *data);
  14. OSErr FtpGetListing (FtpStreamRef stream, char *path, Handle *data);
  15. OSErr FtpPutFile (FtpStreamRef stream, char *path, Boolean textFile, Handle data);
  16. OSErr FtpDeleteFile (FtpStreamRef stream, char *path);
  17.  
  18. void FtpGetServerErrInfo (FtpStreamRef stream, NetServerErrInfo *serverErrInfo); 
  19. long FtpNumBytesTransferred (FtpStreamRef stream);
  20.  
  21. #endif